<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>Document</title>
    <style>
        
    </style>
</head>
<body>
    
</body>
<script>

    // console.log( localStorage );
    // console.log( localStorage === window.localStorage );
    // console.log( typeof localStorage );

    // console.log( localStorage );
    // console.log( localStorage.length );
    // console.log( localStorage.goods );
    // console.log( localStorage.abc )

    // localStorage.abc = "hello"
    
    // localStorage.abc = "world"

    // delete localStorage.abc;
    // delete localStorage.goods;
    // delete localStorage.userMsg;


    // =========


    // console.log(localStorage.getItem("pos"));

    // localStorage.setItem("abc", "hello")
    // localStorage.setItem("abc", "world")
    
    // localStorage.removeItem("abc");

    // 慎用
    // localStorage.clear();

    // console.log( localStorage );

    
</script>
</html>